package utils

import (
	"fmt"
	"go.uber.org/zap"
)

func NewErrorLogger(apiName string) func(operation string, target string, reason string) {
	return func(operation string, target string, reason string) {
		zap.S().Errorw(fmt.Sprintf("[%s] %s [%s] %s", apiName, operation, target, reason))
	}
}
